<template>
    <div class="box">
        <div class="left">
            <p>Satellite Name:{{ object._call_sign }}</p>
            <p>Status:{{ object._status }}</p>
            <p>Position:{{ object._position }}</p>
            <p>NORAD:{{ object._norad }}</p>
            <p>Cospar number:{{ object._cospar_number }}</p>
            <p>Operator:{{ object._operator }}</p>
            <p>Launch date:{{ object._launch_date }}</p>
            <p>Launch site:{{ object._launch_site }}</p>
            <p>Launch vehicle:{{object.launch_vehicle }}</p>
            <!-- <p>Launch mass (kg):{{ object._launch_mass_(kg) }}</p> -->
            <!-- <p>Dry mass (kg):{{ object._dry_mass_(kg) }}</p> -->
            <p>Manufacturer:{{object._manufacturer}}</p>
            <!-- <p>Model (bus):{{ object._model_(bus) }}</p> -->
            <p>Orbit:{{ object._orbit }}</p>
            <p>Expected lifetime:{{ object._expected_lifetime }}</p>
        </div>
        <div class="right">
            <p>Call sign:{{ object._call_sign }}</p>
            <!-- <p>Beacon(s):{{ object._beacon(s) }}</p> -->
            <p>Details:{{ object._details }}</p>
            <p>Charts:</p>
        </div>
        <div class="bottom">
            <a-carousel arrows>
                <template #prevArrow>
                    <div class="custom-slick-arrow" style="left: 10px; z-index: 1">
                        <left-circle-outlined />
                    </div>
                </template>
                <template #nextArrow>
                    <div class="custom-slick-arrow" style="right: 10px">
                        <right-circle-outlined />
                    </div>
                </template>
                <div v-for="item,index in data" :key="index">
                    <h3>{{ item.name }}</h3>
                </div>
            </a-carousel>
        </div>
    </div>
</template>

<script lang="ts">
import { defineComponent, computed } from 'vue';
import { useRoute } from 'vue-router';
import { LeftCircleOutlined, RightCircleOutlined } from '@ant-design/icons-vue';
export default defineComponent ({
    name: 'satelliteDetail',
    components: {
    LeftCircleOutlined,
    RightCircleOutlined,
  },
    setup() {
        const route = useRoute();
        const data = [{name:1},{name:22},{name:333}]
        const object = computed(() => route.query);
        console.log(object.value)
        return {
            object,data
        }
    }
})
</script>

<style scoped lang="less">
.box {
    width: 100%;
    height: 100%;
    color: #fff;

    .left {
        width: 50%;
        float: left;
        padding: 20px;
        box-sizing: border-box;
    }

    .right {
        width: 50%;
        float: left;
        padding: 20px;
        box-sizing: border-box;
    }

    .bottom {
        width: 100%;
        float: left;
        padding: 20px;
        box-sizing: border-box;
        display: flex;
        justify-content: center;
    }

}

.ant-carousel :deep(.slick-slide) {
    text-align: center;
    height: 550px;
    line-height: 550px;
    background: #364d79;
    overflow: hidden;
}

::v-deep .ant-carousel {
    width: 50%;
}

.ant-carousel :deep(.slick-arrow.custom-slick-arrow) {
    width: 25px;
    height: 25px;
    font-size: 25px;
    color: #fff;
    background-color: rgba(31, 45, 61, 0.11);
    opacity: 0.3;
}

.ant-carousel :deep(.custom-slick-arrow:before) {
    display: none;
}

.ant-carousel :deep(.custom-slick-arrow:hover) {
    opacity: 0.5;
}

.ant-carousel :deep(.slick-slide h3) {
    color: #fff;
}

::v-deep .slick-dots-bottom {
    display: none !important;
}
</style>